package com.mairuide.entity.constant;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by 敲代码的卡卡罗特
 * on 2018/12/18 17:08.
 */
public class ConstantPool {

    //小时集合
    public static List<String> HOURSLIST=new ArrayList<>(Arrays.asList("00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"));

    //月份集合
    public static List<String> MONTHSLIST=new ArrayList<>(Arrays.asList("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"));

    //周集合
    public static List<String> WEEKSLIST=new ArrayList<>(Arrays.asList("星期日","星期一","星期二","星期三","星期四","星期五","星期六"));


    public boolean isContainHours(String hours){
        return HOURSLIST.contains(hours);
    }

    public static List<String> getDateAndHourList(List<String> dateList){
        ArrayList<String> strings = new ArrayList<>();
        for(int i=0;i<dateList.size();i++){
            for(int j=0;j<HOURSLIST.size();j++){
                String s= dateList.get(i)+" "+HOURSLIST.get(j);
                strings.add(s);
            }
        }
        return strings;
    }

}
